import javafx.application.Application

fun main(args: Array<String>) {

    Application.launch(GameWindow::class.java)

    //java.awt.Rectangle[x=384,y=624,width=64,height=64]
    //blockViewRect: java.awt.Rectangle[x=704,y=640,width=64,height=64]

    //TestBreak();
}

fun TestBreak() {

    var listOf = listOf("1", "2", "3", "4", "5")

    println("foreach")
    listOf.forEach{

        if(it.equals("3")){
            return@forEach
        }
        print("$it ")
    }

    println()
    println("foreach tag")
    listOf.forEach tag@{

        if(it.equals("3")){
            return@tag
        }
        print("$it ")
    }
    println()
    println("outTag")

    run outTag@{

        listOf.forEach{

            if(it.equals("3")){
                return@outTag
            }
            print("$it ")
        }

    }
}
